package api

import (
	"article/api/handler"
	"github.com/gin-gonic/gin"
)

func CreateArt(r *gin.Engine) {
	article := r.Group("./article")
	article.POST("/create", handler.CreateArt)
}

func CreateCom(r *gin.Engine) {
	com := r.Group("./comment")
	com.POST("/create", handler.CreateCom)
}

func FindCom(r *gin.Engine) {
	com := r.Group("./comment")
	com.POST("/find", handler.FindCom)
}

func DelCom(r *gin.Engine) {
	com := r.Group("./comment")
	com.POST("/del", handler.DelCom)
}
